<?php
require_once("/../../../../includes/controller/initialize.php"); 

  
 if( isset( $_GET['id'])){
$con_id=  $_GET['id'];
  }
$new = $stats_controller->getAgeToSexRating($con_id);
$count = $stats_controller->getAgeToSexCount($con_id);



?>
<script src="/public/view/javascript/Graph.js"></script>
  <script src="http://code.jquery.com/jquery-latest.js"></script>
       <script> 

                var ratetab = [<?php echo $new ?>];
                var tab2 = [<?php echo $count ?>];
               
                  
       </script>
       
        <script type="text/javascript">
   $(document).ready(function() {
       obj.drawBarRate(ratetab);
});

    </script>

           
        <canvas id="canvas2" width="500" height="300" ></canvas>
   
